using System;
using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Actions;
using DevExpress.ExpressApp.Model;
using DevExpress.ExpressApp.Model.Core;
using DevExpress.ExpressApp.Model.NodeGenerators;
using DevExpress.ExpressApp.SystemModule;
using DevExpress.Persistent.BaseImpl;

namespace FeatureCenter.Module.Web.Reports {
    public class ReportsWithInlinePreviewActionsController : WindowController {
        public const string ListViewId = "ReportsWithInlinePreviewActions_ListView";

        protected override void SubscribeToViewEvents(View view) {
            base.SubscribeToViewEvents(view);
            Frame.GetController<DevExpress.ExpressApp.Reports.Web.ReportsController>().SetFormatSpecificPreviewActionsVisible(view.Id == ListViewId);
        }
    }
}
